package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2019/7/19.
 */
@Setter
@Getter
@Document("answer_comment")
public class AnswerComment implements Serializable {
    @Id  //文档id
    private String id;
    private Long answerId; //回答id
    private String answerTitle;//回答标题

    private Long userId;        //用户id
    private String username;    //用户名
    private String city;        //城市
    private int level;          //等级
    private String headUrl;    //头像
    private String content;   //评论内容
    private int thumbupnum;  //点赞数
    private List<Long> thumbuplist = new ArrayList();  //评论点赞人的id
}
